<%@ include file="/WEB-INF/jsp/include/head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
	<%@ include file="/WEB-INF/jsp/include/title.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/common_css.jsp" %>
	<%@ include file="/WEB-INF/jsp/include/common_script.jsp" %>
</head>
<body>
<div id="body">
<%@ include file="/WEB-INF/jsp/include/top.jsp" %>
	<h1>Home Page /</h1>
	<div id="contents" class="contents">
		<h2>Your principal object is:</h2>
		<div class="alertMsg"><%=request.getUserPrincipal()%></div>
		
		<a href="j_spring_security_logout">Logout</a> 
		 
		<sec:authorize ifAllGranted="ROLE_ANONYMOUS">
			<p><a href="http://www.yahoo.com">Yahoo</a></p>
		</sec:authorize>
		<sec:authorize ifAnyGranted="ROLE_ADMIN,ROLE_SUPER_USER">
			<p><a href="http://www.google.com">Google</a></p>
		</sec:authorize>
		<br />
		<sec:authentication property="name" />
	 </div>
</div>	 
<%@ include file="/WEB-INF/jsp/include/footer.jsp" %>
</body>
</html>